package com.own.business.system.dictionary.base.frame.entity.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.own.component.common.base.entity.po.BasePo;
import com.own.constant.ConstantBeanSuffix;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * SystemDictionary
 *
 * @author chenxueli
 * @date 2023-06-27 15:29:30
 */
@Schema(title = "数据字典" + ConstantBeanSuffix.PO)
@Getter
@Setter
@ToString
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "system_dictionary")
public class SystemDictionary extends BasePo implements Serializable {

    @Schema(title = "数据项名称")
    private String itemName;

    @Schema(title = "数据项唯一编号（名字英文）")
    private String itemCode;

    @Schema(title = "数据项值")
    private String itemValue;

    @Schema(title = "数据项页面显示名称")
    private String displayName;

    @Schema(title = "数据项排序序号")
    private Integer sortCode;

    @Schema(title = "上级数据项id")
    private Long fkParentId;

    @Schema(title = "图标")
    private String icon;

    @Schema(title = "状态，0不可编辑，1可编辑，2禁用")
    private Integer state;

    @Schema(title = "根字典编号，子项必填")
    private String rfRootCode;

    @Schema(title = "上级字典编号")
    private String parentCode;

    @Schema(title = "是否存在子集")
    private Integer isLeaf;

    @Schema(title = "字典类型：0数据字典类型，1数据字典项，2分类字典类型，4分类字典项")
    private Integer dictType;

}
